/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Data;

import java.util.Date;



public class Task {
    
    private String name;
    private int alarm;
    private int priority;
    private int status;
    private String description;
    private String Note;
    private Date dateStart;
    private Date dateEnd;
    
    public static final int ALARM_NO = 0;
    public static final int ALARM_10M = 1;
    public static final int ALARM_30M = 2;
    public static final int ALARM_2h = 3;
    
    public static final int PRIORITY_NORMAL = 0;
    public static final int PRIORITY_HIGH = 1;
    
    public static final int STATUS_NORMAL = 0;
    public static final int STATUS_DELAY = 1;
    public static final int STATUS_COMPLETE = 2;
    
    
    
    public Task(String name, int alarm, int priority, String des, String note, Date d, Date e){
        this.name = name;
        this.alarm = alarm;
        this.priority = priority;
        description = des;
        Note = note;
        dateStart = d;
        dateEnd = e;
        status = 0;
    }
    
    public String getName(){
        return name;
    }
    public Date getDateStart(){
        return dateStart;
    }
    public Date getDateEnd(){
        return dateEnd;
    }
    public String getNote(){
        return Note;
    }
    public String getDescription(){
        return description;
    }
    public int getAlarm(){
        return alarm;
    }
    public int getPriority(){
        return priority;
    }
    public int getStatus(){
        return status;
    }
    public boolean equals(Task tt){
        return tt.getName().equals(name)&&tt.getDateStart().equals(dateStart)&&tt.getNote().equals(Note)
                && tt.getDateEnd().equals(dateEnd)&&tt.getDescription().equals(description);
    }
    
    
}
